package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.mapper.DataMapper;
import com.ruoyi.system.service.IDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DataServiceImpl implements IDataService {
    @Autowired
    private DataMapper dataMapper;

    @Override
    public long getUserCount() {
            return dataMapper.selectUserCount();
    }
    public long getHotelBookCount() {
        return dataMapper.selectHotelBookCount();
    }
    public long getHotelCount() {
        return dataMapper.selectHotelCount();
    }
    public long getScenicareaCount() {
        return dataMapper.selectScenicareaCount();
    }

}
